From a3e1f638ca0fa0b0141bf3961c0867df5dffe366 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 11 Sep 2008 11:58:08 +0100 Subject: [PATCH] xm: domid casting bug - This patch fixes a small casting bug in xm. The value of domid was not returned as an int, causing commands like 'xm vncviewer domid' to fail. Signed-off-by: George Coker --- tools/python/xen/xm/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index 548fbc9b30..596b943ef4 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -1812,7 +1812,7 @@ def domain_name_to_domid(domain_name): else: dom = server.xend.domain(domain_name) domid = int(sxp.child_value(dom, 'domid', '-1')) - return domid + return int(domid) def xm_vncviewer(args): autopass = False; -- 2.30.2